import React, { lazy } from 'react';

const Login = lazy(() => import('../pages/Login'))
const Home = lazy(() => import('../pages/Home'))
const Detail = lazy(() => import('../pages/Detail'))

const routes = [
    {
        path: '/',
        element:<Home/>
    },
    {
        path: '/login',
        element: <Login/>
    },
    {
        path: '/detail/:id',
        element: <Detail />
    }
]

export default routes
